const {
  $util,
} = getApp();
Page({
  data: {},
  onLoad(opts) {
    this.setData({
      id: opts.id,
    });
    this.getDetail(opts.id);
  },
  getDetail(id) {
    $util.request({
      url: 'entry/wxapp/system.notice.detail',
      data: {
        id,
      },
      success: (res) => {
        this.setData({
          detail: res.data,
        });
      },
    });
  },
});
